<?php /* Smarty version 2.6.19, created on 2010-10-27 14:17:32
         compiled from uc_order_show.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'uc_order_show.html', 168, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>万利达应用商城</title>
<link href="skins/stlye/globle.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/link.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/footer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" />
<script type="text/javascript" src="js/main.js"></script>
<style>
.jj2{
	text-align:center;
	width:85px; height:25px;  display:block; padding-top:5px; border:solid 1px #CCC; 
	 background: #FFF; color:#eb9822; font-weight:bold; border-bottom:solid 1px #FFF;
	 
	}
.jieshao
{
	text-align:center;
	width:85px; height:25px;   display:block; padding-top:5px; border:solid 1px #CCC; background:#fff8b4;
	cursor:hand;
}
input{
	height:18px;
	}
button{
		height:35px;
		}
</style>
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript">


function preview(oper)
{
if (oper < 10){
bdhtml=window.document.body.innerHTML;//获取当前页的html代码
sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html

prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
window.document.body.innerHTML=prnhtml;
window.print();
window.document.body.innerHTML=bdhtml;


} else {
window.print();
}

}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var currTIdx = null;
var currDIdx = null;
function xqmouseOver(obj,tag0,tag1,id)
{
 
if( currTIdx!=null)
{
	
							
 if(document.getElementById(currTIdx)) document.getElementById(currTIdx).className="jieshao";
 if(document.getElementById(currDIdx)) document.getElementById(currDIdx).style.display="none";	   
}	
 
var Tid = tag0 + id;
var Did = tag1 + id;
 
if(document.getElementById(Tid)) document.getElementById(Tid).className="jj2";	   
if(document.getElementById(Did)) document.getElementById(Did).style.display="block";	  
 
currTIdx = Tid;
currDIdx = Did;
 
 
}
$(document).ready(function(){
						   xqmouseOver(this,'qy','qyxq','01');
						   });
</script>
</head>

<body onload="
MM_preloadImages('skins/stlye/images/candan_04.jpg','skins/stlye/images/candan_05.jpg','skins/stlye/images/candan1_06.jpg','skins/stlye/images/candan1_07.jpg','skins/stlye/images/candan1_08.jpg','skins/stlye/images/candan1_09.jpg','skins/stlye/images/candan1_10.jpg','skins/stlye/images/candan1_11.jpg','skins/stlye/images/candan1_12.jpg','skins/stlye/images/candan1_13.jpg')">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; border:solid 1px #CCC; height:200px;">
  <tr>
    <td><img src="attaching/guanggaotu_02.jpg"  width="1002" height="198"/></td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>您的位置：<a href="index.php">首页 </a> > <a href="index.php">用户中心 </a> &gt; 我的订单</td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; border-top:solid 1px #e97506; border-left:solid 1px #e97506;" >
  <tr>
    <td width="214" rowspan="3" align="left" valign="top" style=" background:#f0f0f0;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right:solid 1px #ff9900; border-bottom:solid 1px #ff9900; background: #FFF;">
      <tr>
        <td class="con" ><img src="skins/stlye/images/czyhb_03.gif" />用户中心</td>
      </tr>
      <tr>
        <td style=" padding:5px 5px 15px 5px ;"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'uc_left.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
      </tr>
    </table></td>
    
    <td width="3" align="left" valign="top"></td>
    <td width="787" align="left" valign="top" style="border:solid 1px #CCC;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" class="wenzi" style="text-align:left; padding-left:10px">我的订单</td>
      </tr>
      <tr>
        <td class="kuang" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="400" colspan="7" valign="top" style="padding:10px"><!--startprint1--><table width="726" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="726" align="left" valign="top"><table border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="8px"></td>
                    </tr>
                  </table>
                  
                  
                  <table width="100%"  border="0" cellspacing="1" cellpadding="7">
                    <tr>
                      <td background="skins/stlye/images/gwcbtbj_03.jpg" style="font-size:12px; font-weight: bold; color: #346699; border:solid 1px #d5e7fd; "><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:27px;">
                        <tr>
                          <td width="10%" align="center"  style="border-right:solid 1px #d5e7fd;">序号</td>
                          <td width="30%" align="center" style="border-right:solid 1px #d5e7fd;">书籍名称</td>
                          <td width="20%" align="center" style="border-right:solid 1px #d5e7fd;">单价（Z币）</td>
                          <td width="20%" align="center" style="border-right:solid 1px #d5e7fd;">数量</td>
                          <td width="10%" align="center" style="border-right:solid 1px #d5e7fd;">合计</td>
                          </tr>
                        </table></td>
                      </tr>
                    <tr>
                      <td colspan="6" align="right"  style=""><?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['clist']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:27px;">
                        <tr>
                          <td width="10%" align="center"  ><?php echo $this->_sections['i']['rownum']; ?>
</td>
                          <td width="30%" align="left" ><a href="book_show.php?id=<?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['url']; ?>
" target="_blank"><span style="color:#009; text-decoration:underline"><?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['topicname']; ?>
</span></a></td>
                          <td width="20%" align="center" ><?php echo ((is_array($_tmp=$this->_tpl_vars['clist'][$this->_sections['i']['index']]['price_y'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
                          <td width="20%" align="center" ><?php echo $this->_tpl_vars['clist'][$this->_sections['i']['index']]['num']; ?>
</td>
                          <td width="10%" align="center" ><?php echo ((is_array($_tmp=$this->_tpl_vars['clist'][$this->_sections['i']['index']]['xiaoji'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
                          </tr>
                        </table><?php endfor; endif; ?></td>
                      </tr>
                    <tr>
                      <td colspan="6" align="right"  style="font-size:12px; padding-right:15px;">&nbsp;总计：<?php echo ((is_array($_tmp=$this->_tpl_vars['zongji'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币</td>
                      </tr>
                    </table>
                  
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#d5e7fd">
                    <tr> 
                      <td height="27" background="skins/stlye/images/gwcbtbj_03.jpg" bgcolor="#f1f1f1">订货信息</td>
                      </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td width="87%"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">收货人姓名：</td>
                          <td><div align="left">&nbsp;<?php echo $this->_tpl_vars['olist']['username']; ?>
&nbsp; </div></td>
                          <td align="right" bgcolor="#F7F7F7">邮政编码：</td>
                          <td>&nbsp;<?php echo $this->_tpl_vars['olist']['youbian']; ?>
</td>
                          </tr>
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 机：</td>
                          <td><div align="left">
                            &nbsp;<?php echo $this->_tpl_vars['olist']['shouji']; ?>
 </div></td>
                          <td align="right" bgcolor="#F7F7F7">联系电话：</td>
                          <td>&nbsp;<?php echo $this->_tpl_vars['olist']['tel']; ?>
</td>
                          </tr>
                        <tr> 
                          <td width="18%" align="right" bgcolor="#F7F7F7">电子邮件：</td>
                          <td width="36%" align="left"> <div align="left"> 
                            &nbsp;<?php echo $this->_tpl_vars['olist']['email']; ?>
  </div></td>
                          <td width="15%" align="right" bgcolor="#F7F7F7">QQ/MSN：</td>
                          <td width="31%" align="left">&nbsp;<?php echo $this->_tpl_vars['olist']['qq']; ?>
 </td>
                          </tr>
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">支付方式：</td>
                          <td align="left">&nbsp;<?php echo $this->_tpl_vars['zhifufangshi']; ?>
</td>
                          <td align="right" bgcolor="#F7F7F7">配送方式：</td>
                          <td align="left">&nbsp;<?php echo $this->_tpl_vars['peisong']; ?>
</td>
                          </tr><?php if ($this->_tpl_vars['olist']['fapiao'] != ""): ?>
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">是否开发票：</td>
                          <td align="left">&nbsp;<?php echo $this->_tpl_vars['olist']['fapiao']; ?>
</td>
                          <td align="right" bgcolor="#F7F7F7">发票抬头：</td>
                          <td align="left">&nbsp;                                  <?php echo $this->_tpl_vars['olist']['fapiaotaitou']; ?>
</td>
                          </tr><?php endif; ?>
                        <tr >
                          <td height="25" align="right" valign="middle" bgcolor="#F7F7F7">详细地址：</td>
                          <td height="25" colspan="3" align="left">&nbsp;<?php echo $this->_tpl_vars['olist']['dizhi']; ?>

                            </td>
                          </tr>
                        
                        <tr> 
                          <td width="18%" align="right" bgcolor="#F7F7F7">简单留言：</td>
                          <td colspan="3" align="left"> <div align="left"> 
                            &nbsp;<?php echo $this->_tpl_vars['olist']['content']; ?>

                            </div></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table><br />
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#d5e7fd">
                    <tr> 
                      <td height="27" align="left" background="skins/stlye/images/gwcbtbj_03.jpg" bgcolor="#f1f1f1">&nbsp;金额总汇</td>
                      </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td width="87%" align="left" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">商品重量：</td>
                          <td align="left"><?php echo $this->_tpl_vars['olist']['zhongliang']; ?>
</td>
                          <td align="right" bgcolor="#F7F7F7">支付手续：</td>
                          <td align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['olist']['zhifuprice'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</td>
                          </tr>
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">可获积分：</td>
                          <td align="left"><?php echo $this->_tpl_vars['olist']['jifen']; ?>
</td>
                          <td align="right" bgcolor="#F7F7F7">配送费用：</td>
                          <td align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['olist']['peisongprice'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币</td>
                          </tr>
                        <tr>
                          <td width="18%" align="right" bgcolor="#F7F7F7">商品金额：</td> 
                          <td width="35%" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['zongji'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币</td>
                          <td width="17%" align="right" bgcolor="#F7F7F7">发票费：</td>
                          <td width="30%" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['olist']['fapiaoprice'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币</td>
                          </tr>
                        <tr>
                          <td align="right" bgcolor="#F7F7F7">总共需要支付：</td>
                          <td colspan="3" align="left" bgcolor="#FFFFF7"><?php echo ((is_array($_tmp=$this->_tpl_vars['olist']['zongjia'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>

                            Z币（商品金额+支付手续+配送费用+发票费）</td>
                          </tr>
                        </table>
                        </td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              <!--endprint1-->
              <table width="98%" border="0" align="center">
                <tr>
                  <td height="33" align="right"><div align="center">
                    <input name="btn_b" type="button" id="btn_b" value=" 返回 " onclick="history.go(-1)"  style="height:23px"/>
                    &nbsp;
                    <input name="btn_save" type="submit" id="btn_save" value=" 打印 " style="height:23px"  onclick="preview(1)"/>
                    &nbsp;</div></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
     
    </table></td>
  </tr>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>